package com.jzsm.modules.sender.senderService.impl.weixin;

import com.jzsm.modules.sender.bo.message.MessageBo;
import com.jzsm.modules.sender.pojo.PushChannelAccount;
import com.jzsm.modules.sender.senderService.AbstractMessageSender;
import org.springframework.stereotype.Component;

/**
 * 微信小程序 渠道
 */
@Component
public class MpWeixinAppMessageSender extends AbstractMessageSender {
    @Override
    public String sendMessage(String message, PushChannelAccount account) {
        System.out.println("sms sent: " + message);
        return "";
    }

    @Override
    public String sendMessage(MessageBo messageBo) {
        return run(messageBo.getMessage(), messageBo.getAccount());
    }

    private String run(String message, PushChannelAccount account) {
        return "";
    }
}
